greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

TARGET = AnalogClock
DEFINES += QT_DEPRECATED_WARNINGS
TEMPLATE = app
DESTDIR += bin
MOC_DIR += ./tmp
OBJECTS_DIR += ./tmp
UI_DIR += ./tmp
RCC_DIR += ./tmp
INCLUDEPATH += ./tmp ./src
CONFIG += console qt warn_on debug_and_release c++11
QT += core gui network

HEADERS +=  src/PubSrtuct.h \
            src/AnalogClock.h \
            src/KeepThread.h \
            src/AnalogClockView.h \
            src/PointerItem.h \
            src/DiscItem.h

SOURCES +=  src/main.cpp \
            src/AnalogClock.cpp \
            src/KeepThread.cpp \
            src/AnalogClockView.cpp \
            src/PointerItem.cpp \
            src/DiscItem.cpp

FORMS   +=  forms/AnalogClock.ui


win32 {
    build_pass:CONFIG(release, debug|release) {
    }

    build_pass:CONFIG(debug, debug|release) {
        TARGET = $$join(TARGET,,,d)
    }
}
